<!-- issue in modal window -->
<script type="text/html" id="issueModal">
	<div class="form-horizontal">
		<p class="note">Поля, помеченные <span class="required">*</span> обязательны для заполнения.</p>
		<!-- Статус -->
		<div class="form-group">
			<label class="col-lg-2 control-label">Статус <span class="required">*</span></label>
			<div class="col-lg-10">
				<select class="form-control" data-bind="value:issue.status(),options:all.issueStatuses(),optionsValue:'id',optionsText:'name'"></select>
			</div>
		</div>
		<!-- Тип -->
		<div class="form-group">
			<label class="col-lg-2 control-label">Тип <span class="required">*</span></label>
			<div class="col-lg-10">
				<select class="form-control" data-bind="value:issue.type(),options:all.issueTypes(),optionsValue:'id',optionsText:'name'"></select>
			</div>
		</div>
		<!-- Название -->
		<div class="form-group">
			<label class="col-lg-2 control-label">Название <span class="required">*</span></label>
			<div class="col-lg-10">
				<input data-bind="value:issue.name" class="form-control"/>
			</div>
		</div>
		<!-- Оценка -->
		<div class="form-group">
			<label class="col-lg-2 control-label">Оценка</label>
			<div class="col-lg-10">
				<input data-bind="value:issue.estimate" class="form-control"/>
			</div>
		</div>
		<!-- Описание -->
		<div class="form-group">
			<label class="col-lg-2 control-label">Описание</label>
			<div class="col-lg-10">
				<textarea data-bind="value:issue.description" class="form-control"></textarea>
			</div>
		</div>
	</div>
</script>